import request from '@/utils/request'

const archivesdApi = {
  getArchivesList: '/api/archives/getArchivesList',
  getArDropList: '/api/archives/getDepositaryList',
  getArchivesbyID: '/api/archives/getArchivesbyID',
  postArchives: '/api/archives/postArchives',
  getArchivesImagesByID: '/api/archives/getArchivesImagesByID',
  postArchivesDepositary: '/api/archives/postArchivesDepositary'
}

export function getArchivesList (params) {
  return request({
    url: archivesdApi.getArchivesList,
    method: 'get',
    params
  })
}

export function getArDropList (params) {
  return request({
    url: archivesdApi.getArDropList,
    method: 'get',
    params
  })
}

export function getArchivesbyID (params) {
  return request({
    url: archivesdApi.getArchivesbyID,
    method: 'get',
    params
  })
}

export function postArchives (data) {
  return request({
    url: archivesdApi.postArchives,
    method: 'post',
    data
  })
}

export function getArchivesImagesByID (params) {
  return request({
    url: archivesdApi.getArchivesImagesByID,
    method: 'get',
    params
  })
}

export function postArchivesDepositary (data) {
  return request({
    url: archivesdApi.postArchivesDepositary,
    method: 'post',
    data
  })
}
